﻿using System;
using System.Collections.Generic;
using System.Text;
using Checkers.Common;

namespace Checkers.Game
{
    public class GamePlayer
    {
        // Enums
        public enum ePlayerType
        {
            Human,
            Computer
        }

        // Data members
        private int m_PlayerScore;
        private string m_PlayerName;
        private eGamePawnType m_PlayerPawnType;
        private ePlayerType m_PlayerType;

        // Ctor
        public GamePlayer(string i_Name, eGamePawnType i_PlayerPownType, ePlayerType i_PlayerType)
        {
            m_PlayerPawnType = i_PlayerPownType;
            m_PlayerName = i_Name;
            m_PlayerType = i_PlayerType;
            m_PlayerScore = 0;
        }

        // Properties

        /// <summary>
        /// Gets and Sets the player's current game score
        /// </summary>
        public int PlayerScore
        {
            get
            {
                return m_PlayerScore;
            }

            set
            {
                m_PlayerScore = value;
            }
        }

        /// <summary>
        /// Return the name of the player
        /// </summary>
        public string PlayerName
        {
            get
            {
                return m_PlayerName;
            }
        }

        /// <summary>
        /// Return the player pown type
        /// </summary>
        public eGamePawnType PlayerPawnType
        {
            get
            {
                return m_PlayerPawnType;
            }
        }

        /// <summary>
        /// Return the player type
        /// </summary>
        public ePlayerType PlayerType
        {
            get
            {
                return m_PlayerType;
            }
        }
    }
}
